package com.perye.dokit.mobileController;


import com.perye.dokit.service.WeddingAppinfoService;
import com.perye.dokit.utils.pageData.PageData;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "基础信息管理")
@RestController
@RequestMapping("/app/WeddInfo")
public class WeddingAppInfoController {


    @Autowired
    private WeddingAppinfoService weddingAppinfoService;



    @GetMapping("/getAppInfo")
    public PageData getAppInfo() throws Exception {

        List<PageData> list=weddingAppinfoService.getInfoAll();
        PageData pageData1=new PageData();
        pageData1.put("code",00);
        pageData1.put("data",list);
        pageData1.put("msg","查询成功");
        return  pageData1;
    }

}
